﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="job_all_published.aspx.cs" Inherits="LinkCard.AdminCP.Job.job_all_published" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <%--<script language="javascript">

        var $j = jQuery.noConflict(); //set no conflict so you can use with MS AJAX.


        $j(document).ready(function () {
            $j("#<%=PostFrom.ClientID %>").datepicker();
            $j("#<%=PostTo.ClientID %>").datepicker();
            //            $("#datepicker").datepicker();
        });
	
    </script>--%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript">
        function setValue(page) {
            location.href = 'job_all_published.aspx?txtSearch=<%=sKeyword%>&IndustryID=<%=nIndustryID%>&LevelID=<%=nLevelID%>&page=' + page;
        }
    </script>
    <section id="content">
  <section class="container_12 clearfix">
    <section id="main" class="grid_12">
      <article>
        <div class="h1">Danh sách tin, bài</div>
     
          <div class="box search">
       
          <label >Tìm kiếm:</label>
          <input  type="text" onfocus="this.value = '';" onblur="if (this.value == '') { this.value='Chức danh công việc'; }"  value="Chức danh công việc" size="40" id="txtSearch"  runat="server" />
          
          
          <asp:DropDownList ID="JobIndustries" runat="server" >
                            </asp:DropDownList>
                            <asp:DropDownList ID="JobLevel" runat="server" >
                            </asp:DropDownList>
          
          
          
          <asp:Button ID="btnSearch" class="button small" Style="width: 60px;"
                                runat="server" Text="Tìm kiếm" onclick="btnSearch_Click"  />
        
      </div>
          <table id="table1" class="gtable sortable" >
            <thead>
              <tr>
                <th><input type="checkbox" class="checkall" /></th>
                <th>Chức danh công việc</th>
                <th>Ngành nghề</th>
                <th>Cấp bậc</th>
                <th >Ngày đăng</th>
                <th ></th>
              </tr>
            </thead>
            <tbody>
            <asp:Repeater ID="msgList" runat="server" OnItemDataBound="msgList_ItemDataBound">
                        <ItemTemplate>
                            <tr>
                                <td >
                                    <input type="checkbox" id="chkDelete" runat="server" />
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "JobPosition")%>
                                </td>
                                <td>
                                <asp:Label ID="JobIndustries" runat="server"></asp:Label>
                                    
                                </td>
                               <td>
                               <%# DataBinder.Eval(Container.DataItem, "JobLevelName")%>
                               </td>
                                <td>
                                     <%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "JobPostDate")).ToString("dd/MM/yyyy")%>
                                </td>
                                
                                <td><a href="job_edit.aspx?JobID=<%# DataBinder.Eval(Container.DataItem, "JobID")%>" title="Sửa"><img src="../Template/images/icons/edit.png" alt="Sửa" /></a> </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr id="msgNoData" runat="server">
                        <td colspan="5" align="center">
                            Không có tin, bài nào!
                        </td>
                    </tr>
              
              
            </tbody>
          </table>
          <div class="tablefooter clearfix">
            <div class="actions">
              <select id="ActionOption" runat="server">
                <option value="0">Thao tác</option>
                <option value="1">Xóa</option>
              </select>
              
              <asp:Button ID="btnDelete" 
                                runat="server" Text="Thực hiện"  class="button small" 
                    style="width:80px;" onclick="btnDelete_Click" />
            </div>
            <div class="pagination" id="divPager" runat="server">
              <!--<a href="#">Prev</a>-->
              <%--<a href="#" class="current">1</a> <a href="#">2</a> <a href="#">3</a> <a href="#">4</a> <a href="#">5</a> ... <a href="#">78</a> <a href="#">Trang sau</a>--%>
              <asp:Literal ID="PagerShow" runat="server"></asp:Literal>
               </div>
          </div>
        
      </article>
    </section>
    
  </section>
</section>
</asp:Content>
